package lgs.hm.homework.work1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class Cate {
	
	private String name="汤姆";
	private Integer age=7;
	private Character sex='男';
	
	@Autowired
	private Fish fish;
	public Cate() {}

	public Cate(String name, Integer age, Character sex, Fish fish) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.fish = fish;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Character getSex() {
		return sex;
	}

	public void setSex(Character sex) {
		this.sex = sex;
	}

	public Fish getFish() {
		return fish;
	}

	public void setFish(Fish fish) {
		this.fish = fish;
	}

	@Override
	public String toString() {
		return "Cate [name=" + name + ", age=" + age + ", sex=" + sex + ", fish=" + fish + "]";
	}
	
	

}
